package com.example.zhidao.model.Spage;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
public class ShowPage<T> {
        //第几页
        private Integer pageNum;
        //每页数据条数
        private Integer pageSize;
        //总数据条数
        private Integer size;
        //起始（末尾）数据
        private Integer startRow;
        private Integer endRow;
        //总页数
        private Integer pages;
        //上（下）一页页码
        private Integer prePage;
        private Integer nextPage;
        //是否是第（最后）一行
        private Boolean isFirstPage;
        private Boolean isLastPage;
        //有无前（后）页
        private Boolean hasPreviousPage;
        private Boolean hasNextPage;
        private Integer navigatePages;
        private List navigatePageNums;
        //数据数组
        private List<T> data;
        private Integer navigateFirstPage;
        private Integer navigateLastPage;
        //第（最后）一页
        private Integer firstPage;
        private Integer lastPage;

}
